Fix collection of js static files. PR for #706.