prepares for global parameters, js files