Fixe ajax'd building actions and remove some legacy JS