also changed animate to ruby style js