refactored out the JS stuff to the vertx-js project