[js] support binary ops on floating point numbers