JS now loading per page rather than per dashboard