Error checking corrected: chunk.substr(2,5) == "error" -->
chunk.substr(3,5) == "error".
Tags parameter format changed: tags = "tags: ['"+params.tags+"'],"; ->
tags = "tags: "+params.tags+",";