1. 8
  1.  

  2. 1

    Wow, only 150 lines of JavaScript.