test for phonegap re http://coenraets.org/blog/phonegap-tutorial/