made javascript more modular