radial basis function in js!