Python Add Variable In String Javascript Substring Function In Js