MDL-40477 JavaScript: Move YUI config functions out and deminify

This should make future development and debugging of these functions much
easier. It also allows us to write inline documentation for them.