Fix bad syntax(?)

"Unexpected token function"
Merge pull request #1 from CareyJWilliams/patch-1

Fix for bad syntax(?)