Refactor to npm package approach.

fuck pathing lol