Changed to use the js file