Compile the script in the context and create javascript functions that proxy java methods
By doing this we don't need to explicit reference the java methods from the javascript through bindings, the created functions will do it for us e.g. impl.myMethod() will be myMethod() in javascript.