regular expression for floating point numbers in javascript