Remove legacy JS