1.  Fix javascript mode