The word var is optional - however if used it should be lower case. When I write this program with VAR I get an error in explorer about missing ; which essentially means their is a problem with the code. The code above preloads two images.