Revert "Merged in require js refactor"

This reverts commit bac1a7f95685e7fb7409e4d478a98fbee5b057fb, reversing
changes made to 34de0fa569d48556219808c6ce2183b280b14b7d.
Revert "Revert "Merged in require js refactor""

This reverts commit 4ae269f947a927f1b33d8f9939d5a17c2cd58f0f.
Revert "Merged in require js refactor"

This reverts commit bac1a7f95685e7fb7409e4d478a98fbee5b057fb, reversing
changes made to fe51ab62fde9c8f6d7df984bdf90fcc0007ab5bf.
The site is now working