little bug in links sharing page (JavaScript)