Fixed deviceready

Problem was passing "this.onDeviceReady" as a function,
which doesn't set the value of "this" properly.
I <3 JS, where "this.foo" != "function(){this.foo();}"