Make it npm compatible

Signed-off-by: Gang Li <gang.li@turn.com>