Revert "Remove legacy tests"

This reverts commit 62348c196b097f59f03c33fecdf073a16c76705e.
Revert "Integrate require.js"

This reverts commit 71ae45e4594ae09398c389f0f48edffbf35e352f.