not working
making javascript modular