Changed JS loading to remove 400 errors. Load time improved a bit