TH javascript testing