Fixed javascript autoversion option