edit testing template added, th on hover added
scripts partially moved from templates to a js.coffee