add fallback mode if js does not work