Updated plugin to detect Windows Phone 8 devices