Restructured body.js into smaller modules