Minor changes to JS title implementation