+1 for the effort. But there is already a project like that which you could have used for this purpose if your purpose was not to build something like HN but build something like HN for only JS: https://github.com/SachaG/Telescope

This would have saved a lot of programming effort.

There is a 'source code' link at the bottom that leads to https://github.com/antirez/lamernews, which looks mostly the same with a different stylesheet, so I think they did save that effort ;)

And FWIW, Telescope may preserve the functionality of HN, but I like the design a lot less (though the Echo design could use some work).