Small JS changes hoping for IE compat