fun with brackets in javascript