@licho as long as you don't mind epubcheck passing (and getting it to run on various devices) the world is your oyster. For actual shippable stuff, I've never used JS, but did create some "choose your path" interactive stories where various options jump you around (pure anchor tags)