stripped out UI, jsLinted, simplified excessive code
added debug info, fixed sudden jumping