updated javascript for page map