added async load
minor changes to js order