fixes for requirejs loading