added JS library with random method