small fix to checking js