Fix stopptopagation with new jquery, closes #331
Added config mongodb in js template, closes #332