updated anchor js file