Only include requirements if needed

Only set the javascript and css requirements if displayLogicCriteria is set.

This also fixes an issue we ran into where we wanted to use display logic in the CMS, but found we were getting javascript errors on the frontend of the site because we weren't using jQuery for the frontend.