Trying to fix phonegap controls not working