As far as Runtime APIs, it isn't something we current support, but are looking into it for the future. I can't speak to JavaScript with 100% certainty (you may want to post in their GeoNet space so someone on the team sees it), but from what I can see, it isn't supported out of the box there either.