map javascript and styling