Adding the former ansi_up.js file as a Angular service with its own API.