removed deprecated write javascript method
Merge pull request #798 from aogilvie/fix/cordova4-compat

removed deprecated write javascript method