Fix to the demos not running in dartium

Updates updates some function signatures to take a double instead of an int as well as fixing the demos where ints are being passed in instead of doubles.  Also, updated to use the browsers pub package (removes a warning in the run process).