modified js to update page title