JS syntax consistency