adjusted js for ogc previews