- add build shell script to simplify build procedure

- use our own tweaked require.js library when available
synced with latest requireJS