JavaScript updated