Array Shift And Unshift In Javascript