re implemented the addScript,addStyle second parameter