REV: add js for add categories in new record page