Split source up using amd modules and requirejs