restructured project, extracted javascript from html file