updated js to work on load too