Bugfix: Trim inner content

If the smoothState object started with a blank line, parser would choke. 
Trimming the input string before passing it to jQuery for parsing fixes the bug.