Modularisation of coffeescripts