Updated README.md to list bower as a dev environment dependency.
Fixed wrapping function to properly support AMD if available.
Merge pull request #639 from willdady/master

Fixing incorrect AMD wrapper