Updated code for browser GPS access

updated code to use watchPosition() instead of getCurrentPosition(),
and added many comments to clarify code.