fix small display bug. redeclare fs in each closure - seems to cause problems when deployed to heroku otherwise?