Converted to use requirejs