Fixed js comparison