fixed a js bug, tested content collection