support AMD
use camelCase in js code
remove window and use root instead
remove define name
DRY code
DRY code
empty deps
change code
fix root
AMD tests
AMD tests
cleanup [ci skip]
cleanup [ci skip]
cleanup [ci skip]
Merge pull request #111 from le0pard/master

Support AMD