add pack.coffee, inspired by pack.py of @kcwu