double title fix
better javascript code for generating new sources