fixed jshint issues

and fixed a bug on share content