made changes to js