build links in javascript
style links better