category is editable
fixed jscript so new categorys are editable
cleanup code