new getLoader() method in view.js