Fixed bug where modernizr not included if module has scripts