Fixing configuration issues with JavaScript