Don't pollute global js namespace; generate id for div in the template, then pass it on to js