CR changes: removed "ondomready" because the script is loaded inline anyway
CR: consistent way of writing JSDocs comments
CR changes: moved concatenated string to variable declaration
CR changes: attached event to '.wikia-interactive-map-thumbnail' instead of '.wikia-interactive-map-thumbnail img'
CR changes: cache the template in localStorage