added javascript files and created template