detect no javascript case and give an error