Wrapping JS in anonymous blocks