Altered js file to reflect changes