catch block should de-initialize all the js initialization work so user can use the no-js version.
catch block should de-initialize all the js initialization work so user can use the no-js version.