custom jsGrouping no running

I've done a custom javascript grouping according to the documentation, see link

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/Extension_Framework/JSGroupings/

I can se the new js file in the cache folder but the js code dont run when loading Sugar web application so the new variables in the grouping file dont get defined. Does any one have experience about this or any clue why it doesn't work?

Best Regards

Gustav LIndström