fix for js needing to be refreshed to work