Trying to fix for Flask and PhoneGap bs