Make test.js ignored
Fix bugs

closes #5