Now with view file that uses JS to send a JSON object to server