use "idiomatic"/node-style relative path requiring and handling

ROOT whatever crap is way too complicated
This seriously should work
But maybe I use browser-targeted JS too much