Fixing the js issue with the theme