Some updated javascript for the page