I'm curious. Are you prefixing the tabs variable with $, or is that a reference to JQuery?