Added control when javascript does not work