compile.js:matchEndBlock regex fix