Moved javascript to static/mapper.js