added javascript to allow smooth image enlargements