Don't convert to strings only to convert to int.

Fixes b/14812974. Instead of converting (now) floats
to strings for passing via javascript, just pass them directly
as ints. Then we don't have to do any parsing.

Change-Id: Iaab27e46b3c6875fee203de389119b835fd27261
2 files changed