Solves a js loading issue