plugin should not install javascript into platforms other than ios

Currently the plugin installs the javascript part of the plugin to all platforms, while there is only an ios implementation.