remove old js code
Fix test case