clean code, add template and lang .js