fork from [jquery bookblock](codrops/BookBlock), remove jquery dependent.