JavaScript & CSS Image comparison