Added trim for old browsers.
Added .min file.
Code refactoring.
Merge remote-tracking branch 'origin/master'