Adding New Element In Array Javascript Function Declaration