Move inline javascript to hook/action, cleaner header.php