Update script.js

working to get js to fire on load with phone gap