updated to work with angularjs v 1.2.19 and angular-strap v 2.0.3