Refactored config so you can now include it as an AMD module