Resolve javascript formatting errors in templates blog post