refactored content.js into multiple files