fixed spmv common files and javascript version