add js variable to prevent error