adding requirejs/commonjs compatibility. imgs -> imgs