added amd globals
added beautifyrc
formatted demojs