adding function php to locations.html