Fixed js load order problem