Add Twitter Bootstrap style alert boxes
Minor JS formatting
New files for tipping logic, and a new utility file with enhanced indexOf, etc.