Moved Javascript body processing to Django helper function; urls are now hardcoded, did not get reverse() working yet