Files moving, extracting methods common for worker and application to a separate file, fix in index.html