Cleaning up the converted code
Putting the 'program' config in a simple object
Switching to the $interval, which angular needs to update the DOM