animations and some js problems