changed loading order for js files