Modularising code with require