Removed unneeded random function in JS port
Merge branch 'remove-unneeded-functions-for-js-port'