Jquery Variable Inside String Javascript Substring