A little JS clean-up.