parseInt doesn’t work as you’d expect.
parseInt
Note: this is fixed on newer browsers.
Pass the radix parameter (probably 10).
radix
10