fixed javascript error in theme.js