updated javascript to load new image