js linking fade is getting interrupted