Added cache to $.ajax()

The cache must be optimized so the data from yr.no only gets fetched
when it's necessary