making sure js is reloaded