JavaScript Array .pop() Method