javascript: inline assignments