Javascript populator and high-precision coordinate system

Initial implementation for issue #36, and hopefully complete implemenation of issue #22 

Needs more testing before merging into master.