Implement csPack.js