Linkedlist doesn't work

There's some whackass "Uncaught typeerror: illegal constructor." I have
no idea what's going on."