Porting of JBasisWeb to AngularJs