After upload a new files, preview do not refresh custom jsp in entry definition

source code is the old one, i need to rename file and change custom jsp name and refresh again

However, it still have title.value is null error even if i change to the following code

function mySubmit() {