rerouteit application written in phonegap