AMD and LESS mode are detected dynamically in index.html.