code cleaning angular-addproduct js file