added ngcordova support