analysis of js files; set up framework