Fixed warning.
constraints.json got too redundant. Now using a require.js module to avoid code duplication.