Fix for IE 8

This fixes the issues with IE 8 described in https://github.com/MakingSense/moment-datepicker/issues/30