Fixed code in theme xtec2 which may interfere javascript in other themes