use ajax to load script