Moving JavaScript to hzjs project.