updating a variable in a partial using Javascript?

Currently in a partial, I have the following:

<% @blogs.each do |blog| %>   <% fields_for "#{Time.now.to_i}", blog do |f| %>

How do I update the #{Time.now.to_i} every time the user clicks?

Currently, the Time only gets set whenever the page is loaded, is there a way to replace this using javascript? I've poured through Nest Form railscasts, as it solves a similar problem, but I can't seem to adapt it to my needs. Honestly, I don't even need to use Time, just a variable that increments so that the form's id's are different and Time just seemed like a logical choice.

Any help on this is greatly appreciated.