The printing permissions page javascript code crash in the other pages