javascript to address issues on qa

javascript issues seem to be causing issue on qa. 
remove comment from here if not needed