Prime number multiplication tables generator written in AngularJS