Update restrict-categories.js

This piece of js code automatically allow you to select/unselect all children categories checkbox by clicking a parent category checkbox.
I hope it's usefull for you! :-)