added missing message param - issue #559
Merge pull request #566 from aogilvie/fix/js-message-check

added missing message param - issue #559