fix the converter
test cases were wrong and adding js into the test.html