Fix faulty gitignore and add lib

  - Removed unwanted entries from .gitignore
  - Add js/lib: all library dependencies