adding conditional define.amd support
fixed indentation
Merge pull request #2 from b3nj4m/dev

adding conditional define.amd support