fix PageField javascript for site change