Configure javascript mode