First pass at converting codebase to YUI