close #60 , fix JS compilation of Random