added initial implementation for JavaScript kernel plugin