Updated the wimage.js file. And added some JS to the index page just for demo purposes