Update javascript to reflect homepage changes etc