Change .gitignore to not ignore lib directory. Fix js handle problem.