capitalize fragments.js