Updated to support phonegap 3
Use DynamiX-Web-Design work to make it Phonegap >=3 only