update index.html
add hit test covers to capture click events

to circumvent a webkit bug
improve cover resize / crop functions