still debugging js