fixed trim issue in polyclip.js