shorten js block declarations