Implemented RequireJS, cleaned up frontpage modal functionality, and other general improvements