$(document).ready( function() {
    rotation_img = 270
    $('#img-test').click( function() {
      rotation_img += 90
      $(this).attr('class', 'rot' + rotation_img % 360 )
    })
})
