Fix the bad calls in Titanium demo and start writing a grunt compiler script for the browser demo