UI - switched to AMD with requirejs
Rails - load models classes for proper working of serialization