add page options js back in for legacy