fix global scope and requirejs deps
Merge pull request #22 from BrandyMint/aleksxor/fix-require-deps

fix global scope and requirejs deps