Reverse Numbers in Binary - html/js solution