Fix trim function call that was causing WPeC js fatal error
Merge pull request #1695 from JeffPyeBrook/pr-1694-fix-js-trim-error

Fix trim function call that was causing WPeC js fatal error