adding loading throbber to media placeholder js