Fixed btn-group labels not getting right colors in component subtemplate

Moved javascript to external file.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29476