Automatically add the git tag based on the version tag in the js.
Improve the debug using JSON.stringify. Trim text values to remove unwanted whitespace.