getting it working in FF; fixing bug with restart