Add require.js.

Move UI setup code to Source/main.js