Fixes circular dependancy error when uglified
Merge pull request #336 from mallzee/uglify-fix

Fixes circular dependancy error when uglified