Adding JavaScript text mode.