fix js load event