Fix endless loop for ":javascript" nodes in Diet templates.