Fix JS issues that may effect IE plus others