js fixes for ecc