Change to javascript

changed js to support an OO kind of patern. Also added loaded gif
between the geolocation loading and map pin pointing location.
Switched from geolocation get position to watch.. should improve
accuray. Few bugs but so far over all better.