clicked bar
finish js. fixing syntax
syntax and var names fix