updated .js file for lighting