fixed the javsascripot refatoring