javascript issue resolved