fix the function call of javascript in the category side panel