Simultaneous Location and Mapping client in JavaScript