phonegap divice motion