adjusting js to account for new google maps object notation