fixing missing semicolons to make the script "minifiable"