litte cleaning
fix grunt build
add authenticated option for js client