Replaced $.getScript by $.ajax to allow caching