Fix routes. Add missing JS. Comment out unnecessary code.