only consider link elements with `rel=alternate`

Currently device.js considers all `<link>` tags in the `<head>` when building its versions list. This pull request changes it to only consider `<link>` tags with `rel="alternate"`. With the code as it was I was getting redirected to my `.css` on some pages.