Adding a JavaScript environment.