First commit of refactoring.
Refactoring (continued).
Wrong pathes to some js and css files