Fixing incorrectly enqueued scripts