Full threadbrockwhittaker·Consider wrapping your code in a closure so that all the variables and functions aren't globals. It's good performance-wise and for not polluting the global namespace.Otherwise looks good. :)View on HN