Don't call parseInt('0755') which treats the octal 0755 as the decimal 755