Fix a Javascript error when no callback function is provided
Merge pull request #5 from jpetitcolas/master

Fix a Javascript error when no callback function is provided