Adding code wrap functionality to json input.
Resolved merge conflicts within controller and html, adding code wrapping functionality