Added errbacks to requirejs