Fixes for "function declaration isn't a prototype"
Merge pull request #1 from adzenith/prototype-fix

Fixes for "function declaration isn't a prototype"