refactoring js, added fonts