netbeans adaptation of the anjularjs phonecat tutorial