demos: Move JS into modules
demos: Move DOM into modules