removing old js and fixing auto animate