automatically add some semicolons to pass JSHint
update tests