Throw exceptoins and requrejs