first draft of extracting info from js files