cleaned up google places javascript