Implementing a crossword puzzle as an ebook would be difficult even under ideal circumstances. Have you considered creating an app instead? There are couple of free programs available that let you design apps with HTML and JavaScript only.
You can read about it for example in
Building iPhone Apps with HTML, CSS, and JavaScript, which you can you access for free at the O'Reilly web site. (There are also similar tools for Android based phones and tablets.)