changes to default.php javascript