Frontend rewritten for use RequireJS