fix some little bugs
minify the js