fix js load order