Attempting compatibility with phonegap build