(spark) cleanup trailing whitespaces
(jsbase) fixed warnings, unsigned can't be < 0