don't crash express if template doesn't exist
fixed an issue with multiple loops of the same key
jslinted
fixing some whitespace issues