Modified and tested in web and phonegap android. Work ok.