fixing href/onclick for javascript links