Reverted back to using require() over global object. Now has a constructor.