Fixing JS Script Loading