simplify things a bit
use the AngularJS