TidyHTML messed up javascript links; fixed