add filename to JS