Fifteen puzzle cordova/phonegap