Adds HTTP requests for lighting to JS.