Decouple segmenter (using OO approach)
Also switch segmenter to coffeescript (for my sanity, as vanilla js OO = not fun)