fix the double inclusion of bootstrap js

This caused some strange behaviors...
avoid errors when handling the category