cleaned up js
improves calendar js loading