added concatenation check for js