replace static map with js map