Use 3rd party JS libraries (including JQuery), call Javascript functions, access object properties and methods. Implement game objects, and algorithms in Javasc...
My bad i was running the function with browser's execute javascript instead of plugin's options.
not tried it yet but problem should get solved