fixed bear's code so that the app runs
Merge branch 'bear-safechanges' of https://github.com/intelliot/FreezeRay3 into bear-safechanges

Conflicts:
	platforms/ios/www/js/app.js
	www/js/app.js