moved to requirejs modules
adds in additional context and a few path changes