fix publish and some jshints