adding js and template