fixes to prevent JS errors; renamed main controller and partial to avoid
conflicts with publisher analytics