added sourcemap support to build.sh

usage example: ./build.sh --advanced --source-map