last commit of the night, changed some url_for() stuff and set up the json on the backend.