Optimises JS syntax.