added javascript to offset anchor tag positions