remove async on main.js in index page
cache updatePositions function