found two exotic edge cases to fix when beautifing jslint