added requirejs and refactored FormUtils into a seperate file.
refactored to do a better job of dependency injection.