Code cleanup on Javascript file for theme.