adjusted gitignore, naming of variable and js bug
fixed tests