allow negative list indices in javascript mode for literals.