Only enable javascript editing functions when page is editable