Sequentially load javascript