fixed the double js