using jade templates instead of string concatenation in JS to dinamically change HTML + PACisation of Node Network