Make it compatible for phonegap
Update phonegap reference