fix js linkage