Built the javascript reactions and fleshed out resp.