js bug fix and css optimize

js bug fix and css optimize