got the pictures to display using html. want to do it with javascript