implemented cross-browser stuff

for event handlers and classlist