fixed conditional include for JS files in header.php

Signed-off-by: Dom Pascal <dom@dompascal.com>