clear up js and image