making sure js reloads