Javascript tidy.