image loading js+php

stuffed code into event.js for if you want to set it up before tonight