Proper Cordova 3.x JavaScript handling

Modified to use `js-module` and `clobbers` in `plugin.xml` instead of manually adding a script tag to `index.html`