changing from kml to javascript