javascript mode setup.