Update tts.js

updated to use cordova 3.x approach