messing with the js to fix phonegap