JS Scrips fix