Fixes TypeError on click. Adds .map extension to gitignore.