refactor js files separate fitness-onload parts
merge index.ftl after js refactor