Compacting the JS