Adding ACE
JavaScript functions
Refactoring of main page