NODEJS COMPRESSION METHOD