Javascript library to load scripts sequentially and more