apply better JS coding convention