fix page javascript