MY_Controller with view page function and option for loading js files