Rewrote theme to use require.js