fixing the mess... replacing individual event handlers with class based handlers and adding color changes to css  @gtemgoua fixed the js by thinking about the DOM - I  was being silly before - thanks