libjass now ships with a default renderer that does most of what index.js did. It initializes the layer div's, preloads fonts and draws Dialogue's based on the current video time.