[BUG] Wrong check in JS - Closes: 97