get deviceready working; keep phonegap JS out of web JS