adding core_kernel_js scripts and tests