Added loading to JS.