replaced all jQuery calls with raw JS, except for events
fixed .innerHTML