Remove useless util functoin and add some npm scripts