use ajax to load dreams