A port of jQuery.terminal into AngularJS