Shift And Unshift In Javascript