init js frontend