fixed jscript so new categorys are editable