Write JS modules that run everywhere