Use 3rd party JS libraries (including JQuery), call Javascript functions, access object properties and methods. Implement game objects, and algorithms in Javasc...
And also try to open this test game:
valerypopoff.ru/temp/plugintest/plugin
Does it open?