Alias float to js number type

Properly type sourceDivergence as float.