uncoded the requirejs part of this