fixed InvocationHandler so that it casts the ScriptEngine to an Invokable. This was necessary to get the first test to pass