fix js & test