Take home assignment from Plastiq using Angular.js