made changes to js to fix background-color