Improving the availability JS