pretty decent API for executing javascripts