moved js to ktn-js