cleaned up the map js