Fixing JS Assertions