Only include requirements if needed

Only set the javascript and css requirements if displayLogicCriteria is
set.
Merge pull request #13 from guttmann/master

Only include requirements if needed