Improve the anchor js.