working on javascript links vs onclick