try explicit declaration of some js variables that appears to be breaking in ie8