Refactor #table to use handlebar template