Refactored code not to use "rel" atribute, data is now saved in DOM