make test page work with ssl, fix sync error
previous fix broke all rotation