Fixes JS loading