made places search using javascript