SPLIN-1454 Fix an integer issue between javascript and titanium native codes.