rewrote modernizr function; conditionally load rem.min.js instead of including it in plugins.js