switches to using prototypes for linked list in javascript, fixes bad test
can add multiple objects to the list, and defines a link for a node
adds pop method to remove last element