Additional fixes to labs.js