Cleanup ext.cx.tools.categories.js according to coding conventions

Change-Id: I66f691fe588f7063eae8b159dee14946d6812ced