javascript verion of kernel plugin implemented, need to fix the mapBuffer in cnets though