check JavaScript is available or not