load as AMD module if AMD is available
Merge pull request #6 from Icode4food/amd_loading

load as AMD module if AMD is available