Added image index on hover. Fixed some JS issues.