Adds AMD support.

I have added AMD #18 support to the `schema.js` file. 

I noticed that running `./build.sh` even without any change always causes these two lines to change in `js-schema.debug.js`. I could not find a way around this.

```bash
-        return errors.join('   OR   ')
+        return errors.join(' AND ')
```