Added new js for location