The second thing is that in the template you MUST use the required code . There is no other way to add my css and javascripts into the template. So a solution for this (and you don't have to delete your header and footer) is the below code to the template.php:
But the header must have the required code and must be in the template. Its just the only way to add my javascripts and css to your custom css. Hope its not complicated.