Update js and clean up ruby