How To Push Function Into Array In Javascript