converted to client-side testing w/Jasmine for strict typing/etc