Adding protection Js for pages.