Convert Javascript libraries to AngularJS modules