Fixed addFile and addScript