introduce RequireJS to index and header