javascript mode fixes
javascript mode fixes