So I just finished a basic tutorial online on Javascript building objects, functions,etc.. and in the end had a small code for building a game of blackjack. I developed the code in a "scratch pad" type environment; it is really basic with alert boxes and I had problems displaying the score inside of them but it does work so far!

Now I am looking to display the cards as images and display the score as the game goes along, not anything fancy just the cards showing up in the top left corner or something would be fine 2 for the player and 1 starting out for the dealer. Also if you have any suggestions on improving the game I am fine with criticism. Also I do have a folder containing the images for a deck of cards ( KS.png.. 9S.png.. ) thanks for any help in advance! Keep in mind I am new to all of this!

Code:
// Card Constructor 
var Card = function(cardSuit, cardNumber){
 var suit = cardSuit; 
 var number = cardNumber; 
 this.getNumber = function(){
 return number;
 }; 
 this.getSuit = function(){ 
 return suit;
 }; 
 this.getValue = function(){ 
 if (number === 1){ 
 return 11; 
 }
 else if(number > 1 && number < 10){ 
 return number;
 }
 else{ 
 return 10;
 }
 };
}; 
// deal 
deal = function(){
 var cardSuit = Math.floor(Math.random()*4);
 var cardNumber = Math.floor(Math.random()*13);
 return new Card(cardSuit, cardNumber);
};
var Hand = function(){
 var card1 = deal();
 var card2 = deal();
 var cards = [card1, card2];
 this.getHand = function(){
 return cards;
 };
 this.score = function(){
 var sum =0;
 var aces = 0;
 for (i=0; i0&&sum>21){
 sum-=10;
 aces--;
 }
 return sum;
 };
 this.printHand = function(){
 var string = "";
 for(i=0; i21){
 if(dealerHand.score()>21){
 return "You tied!";
 }
 else{
 return "You lose!";
 }
 }
 else if(dealerHand.score()>21){
 return "You win!";
 }
 else if(userHand.score()>dealerHand.score()){
 return "You win!";
 }
 else if(userHand.score()===dealerHand.score()){
 return "You tied!";
 }
 else{
 return "You lose!";
 }
}
function playGame(){
 var userHand = playAsUser();
 var dealerHand = playAsDealer();
 var results = declareWinner(userHand,dealerHand);
 console.log("You have " + userHand.printHand());
 console.log("Dealer has " + dealerHand.printHand());
 console.log(results);
}
playGame();