Removed unnecessary function from theme.js