return if empty value for input
js fix