Whence you file your H-1B for new employer and get your receipt from INS, you can quit and work for your new employer.