updated createDirectories function to create css directory