Implement Queue Using Array In Javascript Example