Fix README examples

* Correct the JS examples.
* Correct the AMD wrappers.
* Fix the module paths that are used so that their install location
  doesn't matter. It should be configured separately using RequireJS.
Merge pull request #2 from necolas/fix/readme-examples

Fix README examples