removed some unused js from theme function