removed unused maps.js code

We might want to create something similar if we need to DRY up some of
the JavaScript we currently have, but for now, this doesn't appear to be
doing a whole lot.