Noob question about rotating images

Noob question about rotating images

Hello all,
I've just started to use jQuery and im totally lost. Im not familiar with jQuery syntax and now i need it to rotate image. Basicly i just dont get what i suppose to write inside $('#HERE'). Its in line 18 and im trying to rotate that heroImage (hero.png) there. $('heroImage') wont work. $(heroImage) wont work.... what i suppose to write there to rotate image? pls help the noob :)
  1. // Hero image
  2. var heroReady = false;
  3. var heroImage = new Image();
  4. heroImage.onload = function () {
  5. heroReady = true;
  6. };
  7. heroImage.src = "hero.png";


  8. // Update game objects
  9. var update = function (modifier) {

  10. if (38 in keysDown) { // Player holding up
  11. if(board[Math.round(hero.y/32-0.5)][Math.round((hero.x+3)/32-0.5)] == 0 &&                   board[Math.round(hero.y/32-0.5)][Math.round((hero.x-3)/32+0.5)] == 0){
  12. hero.y -= hero.speed * modifier;
  13. $('#HERE').rotate(45);
  14. }else{}
  15. }

  16. ....and code continues....