crazy hacking trying to get brunch's require to work on a site using requirejs that overwrites window.require.  Finally found the solution which is working here, but it needs to be cleaned up.