download script files in MVC order.
Code refactoring