Fixed bug causing the wrong JS files to be executed for particular clients