Move the js-generated file item snippet into the template. Start remaking style
of the file item in a cleaner way.