Wrapping other Javascript libraries and components for AngularJS