How can I run some javascript code only on edit page? I have a check box in edit mode that I want to get the value of in my publish page. So the only way I can see of doing in this, is running some code while in edit page getting the value of the check box and then using the variable storing the value in my published page