added js load wait