fixed bug that loaded function names as header keys
Merge pull request #284 from chazri/master

Fixed DOM Exception 12 SYNTAX_ERR