fix locals.js