Add travis, fix d.action === undefined bug.