add var declarations; use single quotes for html things