move script tag from goal template to layout
add href for goals