example for how to organize your js