Fix JS errors for new users