Push First Element Array Javascript Function Call