Replaced post and pre-increment and decrement with += and -= to align code best
practices with the default recommendations of JSLint.