Add missed type attribute for embed javascripts
Prevent empty messages from being posted (related to Issue #9)