copied js initialization code into acivate-account

from application.html.erb