Files structure refactoring
First round of refactoring
Fixed jsHint errors
Some improvements