Promisify lessons.js
Compile lessons ahead of time