Adding deviceready event.

Removed sample phonegap script