Bug selecting Current project (JavaScript)