Decimal to binary and binary to decimal conversion without using native Javascript converters, string or arrays.