Rewrote appendLink to work with object.js