refactor so it's easy to compile to js upon deployment