Fixed missing semicolons and other errors as noted by Travic CI