fixed bug with copyright
friction-main.js refactoring