js-utils Code fetched here: http://stackoverflow.com/a/9861101/343802 http://stackoverflow.com/a/2117523/343802