Change javascript examples to used namespaced require() statements

As discussed in #vertx