Javascript onclick repalced by Anchor tag