seperated location finding javascript into an include