add test case and reformat epub ui js