Fixed some JS lint suggestions.