Fix thumbnail link in js