Depends on yepnope.js now. Minor fixes in condition calculation