Update main to use requirejs