init js element