Updated page with javascript functions