correct jS scripts