Build script for php.js sources, that extracts parser functionality and wraps into amd module