Added js flip timer