test the js animation