fix npm preparation

fix #1: https://github.com/tildeio/router.js/pull/70#issuecomment-36668914
fix #2: https://github.com/tildeio/router.js/pull/70#issuecomment-36681427