JS issue where two projects are loading per click