Added JS code, directives to get collapsible and tabs to work