modularizing all of my javascript