Fix #176 and avoid generating js blocks for dynamic blocks