changed font, added comments, refactored js