fixed js kernel