Moved rawBody function to utilities.js