directory js work and template work