Making annotations work nicely by using JS.