changed compile.js to return cachedCompile() function
Instead of an object containing compile() and cachedCompile() functions