use dust and js to make it more organized