javascript function

function for king move highlight and king move
Revert "js"

This reverts commit 925e00346c02be533b6a00ae475ba30f1f29c8bb.