yep: '/css/smartdevice.css','/js/smartdevice.js',
is illegal JS. If you want this to be an array, use yep: ['/css/smartdevice.css','/js/smartdevice.js'],
. Anytime you see a comma inside a JavaScript object, pretend there's a newline, and you'll see what's going wrong here:
Modernizr.load([
{
test: Modernizr.mq('all and (max-width: 1070px)'), // prop:val(=function)
yep: '/css/smartdevice.css', // prop:val(=string)
'/js/smartdevice.js', // ???
}
,...