Updating HDViewController with full JS injection code, including on click handlers for anchor tags with a target of "_blank".