Use 3rd party JS libraries (including JQuery), call Javascript functions, access object properties and methods. Implement game objects, and algorithms in Javasc...
You don't pass anything TO construct. You use "Value" expression of the plugin to get the value of whatever you want in your code. See the manual and the examples.