Aded requireJS support from the first to the last page.