Revert "Some changes to js, ajax, and population functions"

This reverts commit aec26ef47e40b11d1085127355890fd37d53c53f.