Fix a couple bugs in the floppy emulation

Programs which tried to write to a vacant floppy drive used to trigger
an assertion; now it is ignored.  One program used an unusual floppy
track stepping phase pattern, confusing the emulator; now it can deal
with it.  Also cleaned up a couple jshint warnings.