Removed DOM API usage in favor of jQuery