fixed js for showing and hiding the restrictions text area