Update blackbird.js

Added some missing semi-colons and homogenized the use of curly braces around conditional logic to enhance readability.