added filetype check

I added a filetype check so we only map FormatJS when we are editing a javascript file.