added some javascript to the photo form fields