functions.js reference in location.php