Use 3rd party JS libraries (including JQuery), call Javascript functions, access object properties and methods. Implement game objects, and algorithms in Javasc...
"Writing" your javascript code isn't one of the plugin's functionalities. You use this plugin to include javascript files that are already written.