Copy-pasted parsecode.js from blockbuilder
Copy-pasted parsecode.js from blockbuilder

Original source: https://github.com/enjalot/blockbuilder/blob/master/public/js/utils/parseCode.js
curran/magic-sandbox,curran/magic-sandbox