A single page application for calcuting the tip