added filetype so we on map when editing js
Merge pull request #1 from wanderer/master

added filetype check