added geolocation and camera api

I used internal javascript, for some reason it would not work in my
external javascript file, which is main.js. Will fix it