Getting Length Of Array Javascript Push Method Stack