Base functionality of REquireJs as well as some refactoring
Merge pull request #1 from maksimsvoitkevics/Require-js-branch

Base functionality of RequireJs as well as some refactoring