Finished js queue class using linked lists