Use Angular $window
Fix date bug
Use $window
Display Geolocate errors
Add unit tests