fixed empty element bug in problem 14, JS Loops,Arrays,Strings