Corrected jS scripts