Update to_linked_list.js

add smaller implementation