Remove First Element From Array Javascript Using Math