refactored file requirement from index.html to #require