Added config mongodb in js template, closes #332