javascript fragments collection