Write a clean modern JS module that runs everywhere