JavaScript program to convert a binary value between float & integer representations.