Ported python code to static webpage

Ported generator to javascript inside a little static webpage.