loading scripts asynchronously