js updates to master page