New javascript problem added with solution