Fix error in $.getCooke

Loop fails to read first cookie. If your requested cookie was 1st then
you would get return null. This is now fixed.