Javascript shorthand