Chrome updated and broke my code because its stupid it was working fine 24 hours ago. I have found the problem and it should be working now.