Update docs/5-templates.md

line 31: changed "th" to "the"
line 45: changed "replace" to "replaced"
line 62: changed " runcate" to "truncate"
line 89: changed "lat" to "last" and "replace" to "replaced"
line 179: changed "javascript" to "css"