fix for no-jquery situation