use javascript modules to share stuff