Updated ui.js and left a comment in geo.js

The compassWindow, waypointsWindow, and locationWindow objects are now in the ui namespace; can use them with other files like geo.js.

Also, added comments in geo.js on how to create functions with the window object.