Use of ngRoute and angular services to implement a tip calculator