changes main
Adds an event listener
Refactors rgbdiv.js