Add partial implementation of JavaScript integer addition optimisation