[#349] - better platform handling and cleaning up code
[#349] - better platform handling and cleaning up code

don/phonegap-app-developer,don/phonegap-app-developer,don/phonegap-app-developer,don/phonegap-app-developer