Updated the code for the js file.  

Finished out the code for the putImages function.