__DIR__ was never defined

The JS files would not lode, when in dev mode because __DIR__ was not
defined