WIP lib/savage.js