Fixed javascript bug in link templates module.