Do not reference Lab config using global variable, use RequireJS

Besides pedantry, it was actually breaking tests.