Auto insert phonegap js