Fix some JS spelling issues