Onclick open pdf in new tab javascript