fix jsmod

fix conversion float to integer in JS output.