Javascript transition test