fix ie8 not support String.trim function
turn to commonjs module
fix ie8