creating a classname based on filename (minus filetype) and adding it to the created container element