Fixed several broken JS references