fixed file auto modes and added js2mode