Added global define for compression instead of local one
Updated JS
Added first unit test
Unit test JS file
Updated cakefile to compile unit tests