Updated tests for getting sorted series data.
Fixed JsHint failures.
Fixed rounding error when running tests in PhantomJS.