Changed how onclick events handled from CSS3 to JavaScript event handlers