Getting image with js
Integrated ngCordova