styles links, re-rganize script tag