JS script changes